<%@page import="systems.AdsSystem"%>
<%@page import="systems.RecentlyUpdate"%>
<%@page import="systems.RecentlyDomain"%>
<%@page import="java.util.List"%>
<%
List<String> domains = RecentlyDomain.getDomains();
List<String> uDomains = RecentlyUpdate.getDomains();
String hasAdv = (String) request.getParameter("hasAdv");
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

			<!-- Right content BEGIN -->
			<div class="span3">
				<% if (hasAdv == null) { %>
				<div class="adv">
					<%=AdsSystem.getAds200x200() %>
				</div>
				<br />
				<% } %>
				<div class="box2">
					<div class="title">Recently Domain</div>
					<div class="content">
						<ul class="list-domain">
							<% 
							for (int i = 0; i < domains.size(); i++) { 
								if (i >= 20) break;
							%>
							<li><a href="/d/<%=domains.get(i) %>"><%=domains.get(i) %></a></li>
							<% } %>
						</ul>
					</div>
				</div>
				<% if (hasAdv == null) { %>
				<div class="box2">
					<div style="padding: 5px 10px">
						<%=AdsSystem.getAds200x90() %>
					</div>
				</div>
				<% } %>
				<div class="box2">
					<div class="title">Recently Update</div>
					<div class="content">
						<ul class="list-domain">
							<% 
							for (int i = 0; i < uDomains.size(); i++) { 
								if (i >= 20) break;
							%>
							<li><a href="/d/<%=uDomains.get(i) %>"><%=uDomains.get(i) %></a></li>
							<% } %>
						</ul>
					</div>
				</div>
			</div>
			<!-- Right content END -->